package org.ioc.com.springaop.demo;

import lombok.extern.slf4j.Slf4j;
import org.ioc.com.springaop.config.MyAspect;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@Slf4j
@RestController
@RequestMapping("/user")
public class UserController {
    @RequestMapping("/u1")
    public void u1(){
        log.info("执行u1方法");
    }
    @MyAspect
    @RequestMapping("/u2")
    public void u2(){
        log.info("执行u2方法");
    }
}
